import 'package:flutter/material.dart';

class SendAndSaveWidget extends StatelessWidget {
  final String sendText;
  final String saveText;
  final GestureTapCallback? sendTap;
  final GestureTapCallback? saveTap;

  const SendAndSaveWidget({super.key, required this.sendText, required this.saveText, this.sendTap, this.saveTap});

  @override
  Widget build(BuildContext context) {
    return Container(
        height: 50,
        child: Row(children: [
          Expanded(
              child: GestureDetector(
                  onTap: sendTap,
                  child: Container(
                      alignment: Alignment.center,
                      decoration: BoxDecoration(
                          color: Colors.black,
                          borderRadius: const BorderRadius.all(Radius.circular(60)),
                          border: Border.all(color: Colors.black)),
                      child: Text(
                          textAlign: TextAlign.center,
                          sendText,
                          style: const TextStyle(color: Colors.white, fontSize: 16, fontWeight: FontWeight.bold))))),
          const SizedBox(width: 10),
          Expanded(
              child: GestureDetector(
                  onTap: saveTap,
                  child: Container(
                      alignment: Alignment.center,
                      decoration: BoxDecoration(
                          color: Colors.white,
                          borderRadius: const BorderRadius.all(Radius.circular(60)),
                          border: Border.all(color: Colors.black)),
                      child: Text(saveText,
                          style: const TextStyle(color: Colors.black, fontSize: 16, fontWeight: FontWeight.bold)))))
        ]));
  }
}
